package controllers

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func Hello(c *gin.Context) {
	obj := map[string]any{
		"host":    c.Request.Host,
		"message": "hello",
		"example": c.MustGet("example2"),
	}
	c.JSON(http.StatusOK, obj)
}

func RespString(c *gin.Context) {
	c.String(http.StatusOK, "hello")
}
